package com.kkb.springmvc.adapter;

import com.kkb.springmvc.model.ModelAndView;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  HandlerAdapter和Handler一对一
 */
public interface HandlerAdapter {
    ModelAndView handleRequest(Object handler, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;
    boolean supports(Object handler);
}
